
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '组织管理',
    enableValidate: true
})

@Injectable()
export class BasicFormViewmodelForm extends Form {
    @NgFormControl({
        id: 'zzbh_d33b2ee1_avse',
        name: "{{zzbh_d33b2ee1_avse}}",
        binding: 'zzbh',
        updateOn: 'blur',
        defaultI18nValue: '组织编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzbh: FormControl;

    @NgFormControl({
        id: 'zzmc_50884f85_x59n',
        name: "{{zzmc_50884f85_x59n}}",
        binding: 'zzmc',
        updateOn: 'blur',
        defaultI18nValue: '组织名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzmc: FormControl;

    @NgFormControl({
        id: 'zzlb_54e02c1d_sqn7',
        name: "{{zzlb_54e02c1d_sqn7}}",
        binding: 'zzlb',
        updateOn: 'blur',
        defaultI18nValue: '组织类别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    zzlb: FormControl;

    @NgFormControl({
        id: 'projectNote_3d8c3271_py4m',
        name: "{{projectNote_3d8c3271_py4m}}",
        binding: 'projectNote',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    projectNote: FormControl;

    @NgFormControl({
        id: 'fgld_50d0699d_rrl8',
        name: "{{fgld_50d0699d_rrl8}}",
        binding: 'fgld',
        updateOn: 'blur',
        defaultI18nValue: '分管领导',
    })
    fgld: FormControl;

    @NgFormControl({
        id: 'fzr_a214c028_qe90',
        name: "{{fzr_a214c028_qe90}}",
        binding: 'fzr',
        updateOn: 'blur',
        defaultI18nValue: '负责人',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fzr: FormControl;

    @NgFormControl({
        id: 'sszz_09fc7ea1_dyar',
        name: "{{sszz_09fc7ea1_dyar}}",
        binding: 'sszz',
        updateOn: 'blur',
        defaultI18nValue: '组织类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    sszz: FormControl;

}